<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改友情链接类别信息</title>
<%@include file="../../head.jsp"%>
</head>
<body>
		<form id="fm" method="post" enctype="multipart/form-data">
			<table>
				<tr>
					<td><label>名称:</label></td>
					
					<td><input name="friendItemName"  data-options="required:true,validType:'length[0,64]'"
					class="easyui-validatebox" value="${friendItem.friendItemName }"></td>
				</tr>
				<tr>
					<td><label>链接地址:</label></td>
					
					<td><input name="friendItemUrl"  data-options="required:true,validType:'length[0,128]'"
					class="easyui-validatebox" value="${friendItem.friendItemUrl}"></td>
				</tr>
				<tr>
					<td><label>顺序(参考):</label></td>
					
					<td><input name="friendItemOrder"  value="${friendItem.friendItemOrder}" required="true" 
					class="easyui-validatebox"></td>
				</tr>
				<tr>
					<td><label>图片:</label></td>
					
					<td><input name="mfile" type="file"
					class="easyui-validatebox"></td>
				</tr>
				<tr>
					<td><label>旧图片:</label></td>
					
					<td><img src="${image_domain}${friendItem.friendOrigImg}" width='150' height='100'></td>
				</tr>
				<c:if test="${friendItem.friendTypeId eq 3 }">
				<tr>
					<td><label>航空公司新logo:</label></td>
					
					<td><input name="logoFile" type="file"
					class="easyui-validatebox"></td>
				</tr>
				<tr>
					<td><label>航空公司旧logo:</label></td>
					
					<td><img src="${image_domain}${friendItem.icon}" width='150' height='100'></td>
				</tr>
				</c:if>
				<input type="hidden" name="friendItemId" value="${friendItem.friendItemId }" />
				<input type="hidden" name="friendTypeId" value="${friendItem.friendTypeId }" />
				<input type="hidden" name="friendOrigImg" value="${friendItem.friendOrigImg }" />
				<input type="hidden" name="oldOrder" value="${friendItem.friendItemOrder }" />
				<input type="hidden" name="icon" value="${friendItem.icon }"/>
			</table>
		</form>
		
	<style type="text/css">
			#fm {
				margin: 0;
				padding: 40px 40px;
			}
			
			.ftitle {
				font-size: 14px;
				font-weight: bold;
				padding: 5px 0;
				margin-bottom: 10px;
				border-bottom: 1px solid #ccc;
			}
			
			.fitem {
				margin-bottom: 5px;
			}
			
			.fitem label {
				display: inline-block;
				width: 90px;
			}
			
		 </style>
</body>
</html>